package it.polimi.travelDream.web.beans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

@ManagedBean
@RequestScoped

public class LogOutBean {

	
		public String logout() {
		   FacesContext.getCurrentInstance().getExternalContext().invalidateSession();
		    return "/home?faces-redirect=true";
		  }
		
	}
